package org.outlook.test.ui;

import javax.swing.JEditorPane;
import javax.swing.JScrollPane;
import javax.swing.JSplitPane;
import javax.swing.text.html.HTMLEditorKit;

public class ChatViewport extends JSplitPane {

	private static final long serialVersionUID = 1L;

	private JScrollPane talkAreaPane;
	private JEditorPane talkArea;
	
	public void init() {
		talkAreaPane = new JScrollPane();
		talkArea = new JEditorPane();
		talkArea.setEditorKit(new HTMLEditorKit());
		talkArea.setEditable(false);
		talkAreaPane.setViewportView(talkArea);
		talkArea.setText("<html><body></body></html>");
//		talkArea.addHyperlinkListener(new SlimHyperlinkListener(this));
//		talkArea.setTransferHandler(new FileTransferHandler());
		talkAreaPane.setPreferredSize(new java.awt.Dimension(310, 200));
	}
	
	public static void main(String[] args) {
	}

}
